package com.zhl.object;

public class Test {
    public static void main(String[] args) {
        //目标：面向对象编程快速入门
        //1.创建一个学生对象。封装学生1的数据
        Student s1 = new Student();
        s1.name = "学生1";
        s1.chinese = 87;
        s1.math = 90;
        s1.printTotalScore();
        s1.printAverageScore();

        //2.创建一个学生对象。封装学生2的数据
        Student s2 = new Student();
        s2.name = "学生2";
        s2.chinese = 90;
        s2.math = 85;
        s2.printTotalScore();
        s2.printAverageScore();
    }

}

